package com.jl.slick.util.graphics.deprecated;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.SpriteSheet;

import com.jl.slick.util.display.LaunchMenu;


public class BE extends BasicGame
{

	protected SpriteSheet tileset;
	private TS select;

	public BE(String title) 
	{
		
		super(title);	
	} 

	@Override
	public void render(GameContainer arg0, Graphics background) throws SlickException 
	{
		for(int i = 0; i<(32); i++) //draw full piece by piece
		{
			for(int j =0; j<(24); j++)
			background.drawImage(tileset.getSubImage(i, j), i*32, j*32);
		}
	}

	@Override
	public void init(GameContainer container) throws SlickException 
	{	
		//@TODO drawing tileset -- tileset = new SpriteSheet("/resources/images/Tiles/platformer_tiles.png", 32, 32); //32x24 cells, 32x32 pixels each
		tileset = new SpriteSheet("/resources/images/Tiles/platformer_tiles.png", 32, 32);
		container = new AppGameContainer(this, 1024, 768, false); //dynamically resizes self!!!
	}

	@Override
	public void update(GameContainer arg0, int arg1) throws SlickException 
	{
		
	}

	
}
